<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="../skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
<link href="{SKIN_PATH}modal.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="images/js/jqModal.js"></script>
</head>
<body>

{template 'header.html'}

<div class="container">


	<div class="main">
    	<div><a href="">首页</a><a href="{$M[url]}">问吧</a>{catpos($catid)}</div>
        <div class="tag_menu">
          <ul>
            <li {if !$action}class="selected"{/if}><a href="{$M[url]}browse.php">全部问题</a></li>
            <li {if $action=='solve'}class="selected"{/if}><a href="{$M[url]}browse.php?action=solve">已解决问题</a></li>
            <li {if $action=='nosolve'}class="selected"{/if}><a href="{$M[url]}browse.php?action=nosolve">待解决问题</a></li>
            <li {if $action=='vote'}class="selected"{/if}><a href="{$M[url]}browse.php?action=vote">投票中问题</a></li>
            <li {if $action=='hign'}class="selected"{/if}><a href="{$M[url]}browse.php?action=hign">高分问题</a></li>
            <li><a href="{$M[url]}question.php">我要提问</a></li>
          </ul>
        </div>
        {if $action=='solve'}{tag_全部已解决问题}{elseif $action=='nosolve'}{tag_全部待解决问题}{elseif $action=='vote'}{tag_全部投票问题}{elseif $action=='hign'}{tag_全部高分问题}{else}{tag_全部问题}{/if}

    </div>
    
    <div class="aside">
    	<h4 class="tag_box">积分排行<span class="tag_menu_1"><a href="{$M[url]}creditlist.php?action=week" onMouseOver="showContent('0')" id="nav0">上周</a><a href="{$M[url]}creditlist.php?action=month" onMouseOver="showContent('1')" id="nav1">上月</a><a href="{$M[url]}creditlist.php?action=all" onMouseOver="showContent('2')" id="nav2" class="selected">总排行</a></span></h4>
        <div id="content0" style="display:none;">
          <ul>
          {tag_上周积分排行榜}
          </ul>
        </div>
        <div id="content1" style="display:none;">
          <ul>
          {tag_上月积分排行榜}
          </ul>
        </div>
        <div id="content2">
          <ul>
          {tag_总积分排行榜}
          </ul>
        </div>
    </div>


</div>
<script language="JavaScript">
<!--
	function showContent(id)
	{
		for (var i = 0;i < 3;i++)
		{
		var nav = document.getElementById("nav" + i);
		var content = document.getElementById("content" + i);
			if (i == id)
			{
			nav.className = 'selected';
			content.style.display = "";
			}
			else
			{
			nav.className = '';        
			content.style.display = "none";
			}
		}
	}
 //-->
</script>

{template 'footer.html'}